/**
 * Created by Administrator on 2015/1/25.
 */
var sendText = function () {
    var from = $('#from').val();
    var text = $('#text').val();
    text = text.replace("%", "$");
    console.log(text);
    $.ajax({
        type: "get",
        url: "/ghost/test?",
        data: {command: text, from: from},
        success: handleResponse,
        dataType: "html"
    });
}


var handleResponse = function (data) {
    console.log("result:"+data);
    $('#result').val(data);
}